﻿using HrEFCore;
using HrEFCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrIService
{
    public interface ICFTKService
    {
        Task<List<CFFK>> CFFKSelectAsync();//下拉列表一级机构名称
        Task<CFFK> CFFKByIdAsync(string firstkindId);//根据id查询name，一级
        Task<List<CFSK>> CFSKSelectAsync();//下拉列表二级机构名称
        Task<List<CFSK>> CFSKLDAsync(string id);//一二级联动
        Task<List<CFTK>> CFTKLDAsync(string id);//二三级联动
        Task<CFSK> CFSKByIdAsync(string secondkindId);//根据id查询name，二级
        Task<List<CFTK>> SelectCFTKAsync();//查询全部三级机构
        Task<int> AddCFTKAsync(CFTK cftk);
        Task<int> DeleteCFTKAsync(short FtkId);
        Task<int> UpdateCFTKAsync(CFTK cftk);
        Task<CFTK> CFTKByIdAsync(short FtkId);
    }
}
